package org.yaac.server.conf;

import java.util.logging.Logger;

import javax.inject.Inject;
import javax.inject.Provider;

import com.google.appengine.tools.pipeline.PipelineService;
import com.google.appengine.tools.pipeline.PipelineServiceFactory;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
public class PipelineServiceProvider implements Provider<PipelineService> {

	private final Logger logger;
	
	@Inject
	PipelineServiceProvider(Logger logger) {
		super();
		this.logger = logger;
	}

	@Override
	public PipelineService get() {
		logger.info("PipelineService created");
		
		return PipelineServiceFactory.newPipelineService();
	}
}
